<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo $_BASE_DIR?>css_v1/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_BASE_DIR?>css_v1/select.css" rel="stylesheet" type="text/css" />
    <!-- tips -->
    <link type="text/css" href="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.tooltip.css" rel="stylesheet">
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.position.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.tooltip.js"></script>
    <!--<script type="text/javascript" src="<?php /*echo $_BASE_DIR*/?>js_v1/jquery.js"></script>-->
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.idTabs.min.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/select-ui.min.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>javascripts/commond.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>baidu_editor/ueditor.config.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.datetimepicker.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.DatePicker.js"></script>
<!-- 编辑器源码文件 -->
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>baidu_editor/ueditor.all.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php echo $_BASE_DIR?>baidu_editor/lang/zh-cn/zh-cn.js"></script>
<link href="<?php echo $_BASE_DIR?>uploadify/css/uploadify.css" rel="stylesheet" type="text/css" />

<style type="text/css">
#header {
  height: 85px
}

#leftside,#container,#splitBar,#splitBarProxy {
  top: 90px
}
.forminfo li label {
    width: 150px;

}
</style>
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
    width : 345       
  });
  $(".select2").uedSelect({
    width : 167  
  });
  $(".select3").uedSelect({
    width : 110
  });

    //启动tip功能
    $( document ).tooltip({
        position: { my: "left+15 center", at: "right center" }
    });
});
</script>
<script src="<?php echo $_BASE_DIR?>javascripts/jquery.ocupload.min.js"
  type="text/javascript"></script>


  
<script type="text/javascript">
function ajaxpost(form)
{
  var data = $(form).serialize();
  $.post(form.action, data,function(result){
    result =  eval("("+result+")");
    alert(result.message);
    if( result.forwardUrl !== 'null' && result.forwardUrl !== null )
    {
      window.location.href = result.forwardUrl;
    }
    });
  return false;
}
</script>

</head>

<body>

  <div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="<?php echo url("leftmenu/bottom")?>">首页</a></li>
    <li><a href="/">视频管理</a></li>
    </ul>
    </div>
    <div class="formbody">
    <div id="usual1" class="usual">
    <div id="tab1" class="tabson">
    <ul class="forminfo">

    <form action="<?php echo url("user/add")?>" method="post" onsubmit="return ajaxpost(this)">
    
        <?php 
              $fx_grade = fxlevelset::getselectgrade($_SESSION['acct']['id']);
              $viplevel = viplevel::selectviplevel($_SESSION['acct']['id']);
              $upload_url = url('admin::interface/uploadeditor');
              $host = Helper_Common::getRequestHost();
        ?>

    
        
        <input type="hidden" value="<?php echo $info->id ?>" name="id" />
        <li>
        <label>昵称</label>
        <input type="text" title="昵称"  class="dfinput" disabled="disabled" style="width:200px;" value="<?php echo $info->nickname ?>"  />
        </li>

        <li>
        <label>手机号码</label>
        <input type="text" title="手机号码"  class="dfinput" disabled="disabled" style="width:200px;" value="<?php echo $info->phone ?>"  />
        </li>

        <li>
        <label>姓名</label>
        <input type="text" title="姓名" name="real_name" class="dfinput" style="width:200px;" value="<?php echo $info->real_name ?>"  />
        </li>

        <li>
        <label>身份证号码</label>
        <input type="text" title="身份证号码" name="id_card_num" class="dfinput" style="width:200px;" value="<?php echo $info->id_card_num ?>"  />
        </li>


        <li>
        <label>头像</label>
        <img src="<?php echo $info->avatar_url ?>" style="width: 50px;height: 50px">
        </li>
        
        <li>
        <label>分销级别</label>
        <div class="vocation">
          <select name="fx_grade" class="select3" title="分销级别">
          <?php 
              foreach ($fx_grade as $key => $value) {
            ?>
            <option value="<?php echo $key ?>" <?php echo $info->fx_grade == $key ? 'selected':''?>><?php echo $value ?></option>
          <?php 
              }
          ?>
          </select>
          </div>
        </li>
        
        <li>
        <label>所属公司</label>
        <input readonly type="text" title="姓名" name="real_name" class="dfinput" style="width:200px;" value="<?php echo $info->company->company_name ?>"  />
        </li>
        
        <li>
        <label>公司职位</label>
        <input readonly type="text" title="姓名" name="real_name" class="dfinput" style="width:200px;" value="<?php echo $info->department ?>"  />
        </li>

        <li>
        <label>会员等级</label>
        <div class="vocation">
          <select name="viplevel_id" class="select3" title="会员等级">
             <option value="0" <?php echo $info->viplevel_id == 0 ? 'selected':''?>>非会员</option>
          <?php 
              foreach ($viplevel as $key => $value) {
            ?>

            <option value="<?php echo $key ?>" <?php echo $info->viplevel_id == $key ? 'selected':''?>><?php echo $value ?></option>
          <?php 
              }
          ?>
          </select>
          </div>
        </li>

        <li>
        <label>会员到期时间</label>
        <input type="datetime-local" title="会员到期时间" class="dfinput" style="width:200px;" value="<?php echo str_replace("CS", '',date("Y-m-dTH:i",$info->due_time)) ?>" name="due_time" />
        </li>


        <li>
        <label>是否禁用</label>
        <div class="vocation">
          <select name="is_delete" class="select3" title="是否禁用">
          <option value="0" <?php echo $info->is_delete == 0 ? 'selected':''?>>否</option>
          <option value="1" <?php echo $info->is_delete == 1 ? 'selected':''?>>是</option>
          </select>
          </div>
        </li>

        <li>
        <label>是否禁言</label>
        <div class="vocation">
          <select name="is_comment" class="select3" title="是否禁用">
          <option value="0" <?php echo $info->is_comment == 0 ? 'selected':''?>>否</option>
          <option value="1" <?php echo $info->is_comment == 1 ? 'selected':''?>>是</option>
          </select>
          </div>
        </li>

        
  <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="提交"/></li>
    
  
  </form>

</ul></div></div></div></body>
    
    </html>
    
    
